﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Nav3.ModelCapRHQ
{
    public class PosInfoAttribute : INotifyPropertyChanged
    {
        private bool _isSelected;
        private string _infoName;
        private int _colMap;
        public double? orgSize;

        public bool IsSelected {
            get { return _isSelected; }
            set
            {
                if (value != _isSelected)
                {
                    _isSelected = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("IsSelected"));
                    }

                }
            }
        }

        public string InfoName { 
            get{
                return _infoName;
            }
            set
            {
                if (value != _infoName)
                {
                    _infoName = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("InfoName"));
                    }
                }
            }
        }

        public int ColMap
        {
            get { return _colMap; }
            set{_colMap=value;}
        }

        public PosInfoAttribute(bool isSelected,string infoName,int colMap)
        {
            this._infoName = infoName;
            this._isSelected = isSelected;
            this._colMap = colMap;
            this.orgSize = null;
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
